package net.googlecode.exigenlab.task3.personal;

/**
 * Class for creating Employee and adding specific information
 * 
 * @author Poddybniak Petr <a href="mailto:PPoddybniak@gmail.com">Poddybniak
 *         Petr</a>
 * @since 28.03.2011
 */
public class Employee extends Worker {
	private int experience; // experience of worker

	/**
	 * Default constructor.
	 * 
	 */
	public Employee() {
		super();
		this.setPost("Employee");
	}

	/**
	 * Constructo, wich create instance of class <code>Employee</code>
	 * 
	 * @param firstName
	 *            name of employee
	 * @param lastName
	 *            the last name of employee
	 * 
	 */
	public Employee(final String firstName, final String lastName) {
		super(firstName, lastName);
		this.setPost("Employee"); // set post of employee
		this.experience = 0;
	}

	/**
	 * Get experience of employee
	 * 
	 * @return experience of employee
	 */
	public int getExperience() {
		return this.experience;
	}

	/**
	 * Set experience of employee
	 * 
	 * @param experience
	 *            experience of employee
	 */
	public void setExperience(int experience) {
		this.experience = experience;
	}

	/**
	 * Set schedule of the employee
	 * 
	 * @param perHour
	 *            if true - hourly pay, false - fixed rate;
	 */
	public void setPerHour(boolean perHour) {
		this.perHour = perHour;
	}

	/**
	 * Set a bonus of employee
	 * 
	 * @param bonus
	 *            true - bonus issue, false - no bonus;
	 */
	public void setBonus(boolean bonus) {
		this.bonus = bonus;
	}
}
